package com.tfh.strategy;

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

public class MonthMeanFactory extends Factory{
    public MonthMeanFactory(){}

    @Override
    public List<BigDecimal> calc(BigDecimal water) {
        BigDecimal mean = water.divide(BigDecimal.valueOf(12),RoundingMode.HALF_UP);
        return IntStream.range(0,12).mapToObj((int i)-> mean).collect(Collectors.toList());
    }


}
